<include file="Public:header"/>

	<form id="myform" method="post" action="{pigcms{:U('Sys_product_property/property_add')}" enctype="multipart/form-data">
		<table cellpadding="0" cellspacing="0" class="frame_form" width="100%">
			<tr>
                <th width="80">所属商品类型</th>
                <td>
	                <select name="property_type_id" class="property_type" validate="required:true" tips="">
		                <option value="">未选择</option>
		                <foreach name="property_type" item="propertytype" key="k">
			                <option value="{pigcms{$propertytype.type_id}" <if condition="$propertytype['type_id'] eq $category['type_id']">selected</if>>{pigcms{$propertytype.type_name}</option>
		                </foreach>
	                </select>
                </td>
			</tr>
            <tr>
				<th width="80">属性名</th>
				<td><input type="text" class="input fl" name="name" id="name" size="25" placeholder="" validate="maxlength:20,required:true" tips=""/></td>
			</tr>

			<tr>
				<th width="80">分类排序</th>
				<td><input type="text" class="input fl" name="sort" value="0" size="10" placeholder="分类排序" validate="maxlength:6,number:true" tips="默认添加id排序！手动排序数值越小，排序越前。"/></td>
			</tr>





			<tr>
				<th width="80">分类状态</th>
				<td>
					<span class="cb-enable"><label class="cb-enable selected"><span>启用</span><input type="radio" name="status" value="1" checked="checked" /></label></span>
					<span class="cb-disable"><label class="cb-disable"><span>禁用</span><input type="radio" name="status" value="0" /></label></span>
				</td>
			</tr>

		</table>
		<div class="btn hidden">
			<input type="submit" name="dosubmit" id="dosubmit" value="提交" class="button" />
			<input type="reset" value="取消" class="button" />
		</div>
	</form>

<include file="Public:footer"/>